package top.majuan.springboot3.annotation;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@Documented
public @interface BucketLimit {
    String key() default "";
    int timeout() default 10;
    int limit() default 10;
    String message() default "接口已到最多使用量，请稍后重试";

    LimitMode mode() default LimitMode.GLoBAL;
}
